import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //查询产品列表
  queryPortfolioPage: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/queryPortfolioPage`, query),
  //新增子节点
  addNode: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioInfo/addNode`, query),
  //删除子节点
  deleteNode: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/deleteNode`, query),
  //保存配置信息
  saveSettings: (query) => api.post(`${config.interfaces.type5}portfolio-server/portfolioInfo/settings`, query),
  //查询组合树
  queryTreeList: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/getTree`, query),
  //查询配置信息
  queryConfigInfo: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/settings`, query),
  //查询自动审批人
  queryAprrovalUserList: (query) => api.get(`${config.interfaces.type5}portfolio-server/user/find-all-by-tenant`, query),
  //查询下达操作员
  queryOrderUserList: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/queryOrderUsers`, query),
};
